import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        LogIn logIn = new LogIn();
        String username;
        String password;
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入账号：");
        username = scanner.nextLine();
        System.out.print("请输入密码：");
        password = scanner.nextLine();
        try {
            logIn.loginInfo(username, password);
        } catch (UserNameException e) {
            System.out.println("捕捉到了UserNameException...");
            e.printStackTrace();
        } catch (PassWordException e) {
            System.out.println("捕捉到了PassWordException...");
            e.printStackTrace();
        }finally {
            System.out.println("finally......");
        }
    }
}